package com.shengqi.xinnongren.common.base;

import com.shengqi.xinnongren.common.utils.ToastHelper;
import com.shengqi.xinnongren.work.MyApplication;

/**
 * Created by xuyougen on 2018/4/11.
 */

public interface BaseView {
    void showLoadingView();

    void hideLoadingView();

    void onNetworkError();

    default void onRequestFailed(String message) {
        ToastHelper.getInstance(MyApplication.getContext()).showWarn(message);
    }
}
